<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    //获取项目的根路径
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2021/7/19
  Time: 9:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form method="get" action="MgrSelete">
<input name="realName" type="text">
    <select name="roleName">
        <option value="">普通员工</option>
        <option value="">中级员工</option>
        <option value="">高级员工</option>
    </select>
    <input type="submit" name="cx">
</form>
<a href="add">添加</a>
    <table border="1">
        <tr>
            <td>姓名</td>
            <td>性别</td>
            <td>电话</td>
            <td>姓名</td>
            <td>性别</td>
            <td>电话</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${Uslist}" var="user">
            <tr>
                <td>${user.realName}</td>
                <td>${user.realName}</td>
                <td>${user.realName}</td>
                <td>
                <c:if test="${user.sex eq 0}">
                    男
                </c:if>
                <c:if test="${user.sex eq 1}">
                    女
                </c:if>
                </td>
                <td>${user.phone}</td>
                <td>${user.realName}</td>
                <td>
                    <a href="del?id=${user.id}">删除</a>
                    <a href="upd1?id=${user.id}">更新</a>
                </td>
            </tr>
        </c:forEach>
    </table>
${loginuser}
</body>
</html>
